package com.htu.courseService.websocket.chat.hanler;
import com.htu.courseService.websocket.chat.ChatApp;
import com.htu.courseService.websocket.config.SocketMsg;
import io.netty.channel.ChannelHandlerContext;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created By JNNarrator on 2024/9/22 01:43
 * email: jiangn09@chinatelecom.cn
 */
@Component("launchChat")
public class LaunchChatHandler implements ChatAppHandler{
	
	@Override
	public void handle(SocketMsg<?> socketMsg, ChannelHandlerContext ctx) {
		ChatApp.add(socketMsg.getData());
	}
}
